<template>
    <div>
        <el-table
                :data="tableData"
                style="width: 100%">
            <el-table-column
                    prop="name"
                    label="服务名称"
                    width="180">
            </el-table-column>
            <el-table-column
                    label="链接地址">
                <template slot-scope="scope">
                    <a :href="scope.row.address"
                       target="_blank"
                       class="buttonText">{{scope.row.address}}</a>
                </template>
            </el-table-column>
        </el-table>

    </div>
</template>

<script>
    export default {
        name: "SysConfig",
        data(){
            return{
                tableData: []
            }
        },
        mounted() {
            this.initFirst();

        },
        methods:{
            initFirst(){
                this.getRequest("/system/config/getNacosConfig").then(resp=>{
                    if(resp){
                        this.tableData = resp;
                    }
                })

            }
        }
    }
</script>

<style scoped>

</style>